public class Program18 {
    //a说他不和x比，c说他不和x,z比  ->  c VS y & a VS z -> b VS x
    public static void main(String[] args) {
        //x,y,z分别表示a,b,c的对手
        int x,y,z;
        //利用for循环遍历对手，在最内层循环将不符合条件的情况写进if语句里，利用continue跳过循环
        for (x = 'x';x <= 'z' ;x++){
            for (y = 'x'; y <= 'z'; y++) {
                for (z = 'x'; z <= 'z'; z++) {
                    if(x=='x'|| y==x||z=='x'||z=='z'||z==x||z==y) {
                        continue;
                    }
                    System.out.println("a VS "+(char)x+" \nb VS "+(char)y+"\nc VS "+(char)z);
                }
            }
        }
    }
}